package com.pearl.spi.jdbc.demo;

import java.util.ServiceLoader;

/**
 * @author TangDan
 * @version 1.0
 * @since 2023/6/5
 */
public class Db {

    public static  void loadDriver(){
        ServiceLoader<JdbcDriver> providers = ServiceLoader.load(JdbcDriver.class);
        for (JdbcDriver provider : providers) {
            provider.load();
        }
    }
}